package cn.bsuc.crm.service;

import cn.bsuc.crm.dto.RoleDTO;
import cn.bsuc.crm.entity.Role;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;


public interface RoleService extends IService<Role> {

    //保存角色
    int saveRole(Role role);

    //查角色及分页
    Page<Role> selectAllrole(Integer pageNo, Integer pageSize);

    //删除角色及权限
    int deleteRoleAndPermission(Integer roleId);
}
